package com.localjoycommunity.cpdj.project.system.service;

import java.util.List;

import com.localjoycommunity.cpdj.project.system.domain.Building;

/**
 * 楼宇Service接口
 *
 * @author leepandar
 * @date 2021-01-19
 */
public interface IBuildingService {
    /**
     * 查询楼宇
     *
     * @param buildingId 楼宇ID
     * @return 楼宇
     */
    public Building selectBuildingById(Long buildingId);

    /**
     * 查询楼宇列表
     *
     * @param building 楼宇
     * @return 楼宇集合
     */
    public List<Building> selectBuildingList(Building building);

    /**
     * 新增楼宇
     *
     * @param building 楼宇
     * @return 结果
     */
    public int insertBuilding(Building building);

    /**
     * 修改楼宇
     *
     * @param building 楼宇
     * @return 结果
     */
    public int updateBuilding(Building building);

    /**
     * 批量删除楼宇
     *
     * @param buildingIds 需要删除的楼宇ID
     * @return 结果
     */
    public int deleteBuildingByIds(Long[] buildingIds);

    /**
     * 删除楼宇信息
     *
     * @param buildingId 楼宇ID
     * @return 结果
     */
    public int deleteBuildingById(Long buildingId);
}
